package com.knowledgegraph.zhongyao.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.knowledgegraph.common.annotation.Excel;
import com.knowledgegraph.common.core.domain.BaseEntity;

/**
 * 养生知识对象 yang_sheng
 * 
 * @author ruoyi
 * @date 2023-07-23
 */
public class YangSheng extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 养生主键 */
    @Excel(name = "养生主键")
    private String yangKey;

    /** 养生名称 */
    @Excel(name = "养生名称")
    private String yangName;

    /** 养生方法推荐 */
    @Excel(name = "养生方法推荐")
    private String yangMethod;
    @Excel(isExport = false)
    private String picUrl;
    /** 来源 */
    @Excel(name = "来源")
    private String yangFrom;

    /** 作者 */
    @Excel(name = "作者")
    private String yangZuo;

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date yangTime;

    public void setYangKey(String yangKey) 
    {
        this.yangKey = yangKey;
    }

    public String getYangKey() 
    {
        return yangKey;
    }
    public void setYangName(String yangName) 
    {
        this.yangName = yangName;
    }

    public String getYangName() 
    {
        return yangName;
    }
    public void setYangMethod(String yangMethod) 
    {
        this.yangMethod = yangMethod;
    }

    public String getYangMethod() 
    {
        return yangMethod;
    }
    public void setYangFrom(String yangFrom) 
    {
        this.yangFrom = yangFrom;
    }

    public String getYangFrom() 
    {
        return yangFrom;
    }
    public void setYangZuo(String yangZuo) 
    {
        this.yangZuo = yangZuo;
    }

    public String getYangZuo() 
    {
        return yangZuo;
    }
    public void setYangTime(Date yangTime) 
    {
        this.yangTime = yangTime;
    }

    public Date getYangTime() 
    {
        return yangTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("yangKey", getYangKey())
            .append("yangName", getYangName())
            .append("yangMethod", getYangMethod())
            .append("yangFrom", getYangFrom())
            .append("yangZuo", getYangZuo())
            .append("yangTime", getYangTime())
            .toString();
    }
}
